Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Embedded C Interview Questions and Answers

Question: What is the purpose of the 'volatile' keyword in C?
Answer: The 'volatile' keyword is used to indicate that a variable may be changed by external factors, such as an interrupt service routine.

Example:

volatile int flag;
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook